package com.lp.bean;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.lp.annotation.Code;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import java.util.Date;

/**
 *@类:IotNodeInfo
 *@作者:chenrj
 */

@Data
@NoArgsConstructor
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL) 
@EqualsAndHashCode(callSuper = false)
@ExcelIgnoreUnannotated
@ColumnWidth(value = 30)
public class IotNodeInfo extends BaseBean {



   /**name*/
//   @ExcelProperty(value = "Device Name")
   private String name;

   /**device_code*/
   @ExcelProperty(value = "Device SN")
   private String device_code;

   @Code
   private Integer iot_node_type;

   /**协议类型*/
   private String iot_protocal_category;

   /**seq*/
   @ExcelProperty(value = "Sort in")
   private Integer seq;

   /**scene_id*/
   private Integer scene_id;

   /**节点状态*/
   @Code
   private Integer iot_node_status;

   /**img_id*/
   private Integer img_id;

   /**aid*/
   private Integer aid;

   /**atime*/
   private Date atime;

   /**mid*/
   private Integer mid;

   /**mtime*/
   private Date mtime;
   private Integer template_id ;

   /**
    * 维保时间
    */
   private Date maintenance_time;
   @ExcelProperty(value = "Latitude and longitude")
   private String lonLat ;
   private String infos ;
   @ExcelProperty(value = "Upload cycle[seconds]")
   private Integer frequency ;
   private Integer custom_id ;

}